Both Manchester sides were kept apart in the draw for the semi-finals of the Capital One Cup which followed Wednesday night's quarter-final matches.
United, who progressed to the last four with a 2-0 victory over Stoke City courtesy of strikes from Ashley Young and Patrice Evra, will take on Chelsea's conquerors Sunderland.
Manchester City, 3-1 winners at Leicester City on Tuesday night, will face West Ham United, who came from behind to score two goals in five minutes to beat Tottenham 2-1 on Wednesday.
The semi-finals will be played over two legs with the first leg to be played in the week commencing January 6 and the second leg to be played in the week commencing January 20.
Semi-final draw in full:
Sunderland v Manchester United
Manchester City v West Ham United