Morecambe will host fellow League 2 side Rochdale in the first round of the FA Cup.
John Coleman's side will visit the Globe Arena on Saturday, November 3.
The Shrimps were recently 2-1 victors in a match between the sides at Spotland thanks to a brace from Jack Redshaw against his former club.
Morecambe boss Jim Bentley said: "I am pleased that we have been drawn at home as that is always something you look for.
"It will be a really tough game for us but one that we can certainly look forward to.''