A DC machine is an electro-mechanical device that converts mechanical energy into electrical energy. It works on Faraday's law of induction, which states that an electromotive force is induced in a conductor whenever it cuts magnetic lines of force. The DC machine consists of a stator, rotor, commutators, and brushes. The stator is the stationary part with field windings, while the rotor rotates inside the stator. Commutators and brushes are used to convert the alternating current generated in the rotor into direct current. DC machines have applications in motors, generators, and other devices that require conversion between mechanical and electrical energy.