Magnetic resonance imaging (MRI) techniques and ultrasound-based transient elastography (TE) can be used in noninvasive diagnosis of fibrosis and steatosis in patients with nonalcoholic fatty liver disease (NAFLD). We performed a prospective study to compare the performance of magnetic resonance elastography (MRE) vs TE for diagnosis of fibrosis, and MRI-based proton density fat fraction (MRI-PDFF) analysis vs TE-based controlled attenuation parameter (CAP) for diagnosis of steatosis in patients undergoing biopsy to assess NAFLD.