graveyard shift

a work shift usually beginning at about midnight and continuing for about eight hours through the early morning hours.