The aim of the current study is to demonstrate the feasibility of radiofrequency (RF) pulses generated via an optimal control (OC) algorithm to perform magnetic resonance elastography (MRE) and quantify the mechanical properties of materials with very short transverse relaxation times (T2 < 5 ms) for the first time. OC theory applied to MRE provides RF pulses that bring isochromats from the equilibrium state to a fixed target state, which corresponds to the phase pattern of a conventional MRE acquisition. Such RF pulses applied with a constant gradient allow to simultaneously perform slice selection and motion encoding in the slice direction. Unlike conventional MRE, no additional motion-encoding gradients (MEGs) are needed, enabling shorter echo times. OC pulses were implemented both in turbo spin echo (OC rapid acquisition with refocused echoes [RARE]) and ultrashort echo time (OC UTE) sequences to compare their motion-encoding efficiency with the conventional MEG encoding (classical MEG MRE). MRE experiments were carried out on agar phantoms with very short T2 values and on an ex vivo bovine tendon. Magnitude images, wave field images, phase-to-noise ratio (PNR), and shear storage modulus maps were compared between OC RARE, OC UTE, and classical MEG MRE in samples with different T2 values. Shear storage modulus values of the agar phantoms were in agreement with values found in the literature, and that of the bovine tendon was corroborated with rheometry measurements. Only the OC sequences could encode motion in very short T2 samples, and only OC UTE sequences yielded magnitude images enabling proper visualization of short T2 samples and tissues. The OC UTE sequence produced the best PNRs, demonstrating its ability to perform anatomical and mechanical characterization. Its success warrants in vivo confirmation in further studies.