Friction control of machine elements on a molecular level is a challenging subject in vehicle technology. We describe the molecular dynamics studies of friction in two significant lubrication regimes. As a case of elastohydrodynamic lubrication, we introduce the mechanism of momentum transfer related to the molecular structure of the hydrocarbon fluids, phase transition of the fluids under high pressure, and a submicron thickness simulation of the oil film using a tera-flops computer. For boundary lubrication, the dynamic behavior of water molecules on hydrophilic and hydrophobic silicon surfaces under a shear condition is studied. The dynamic structure of the hydrogen bond network on the hydrophilic surface is related to the low friction of the diamond-like carbon containing silicon (DLC-Si) coating.