Bring up the rear

To be at the end of the line or in the last position.

The youngest runner was bringing up the rear in the school relay race.