Mechanical engineering is the scientific discipline that encompasses the study of machines and mechanical systems. It includes the design, development, testing, and maintenance of machines and mechanical systems, as well as the study of their properties and behavior.