The main branches of mechanics in engineering are statics, dynamics, fluid mechanics, and solid mechanics. Statics deals with forces in equilibrium, dynamics involves forces and motion, fluid mechanics studies the behavior of fluids, and solid mechanics focuses on the deformation and strength of solid materials.