What function does oxygen have in aerobic cellular respiration?

Oxygen is the final electron acceptor