What is the function of the mitochrondia?

Cellular respiration. It produces ATP, which is the power source for cells.