The 25-year-old Egyptian international has admitted that he was keen on leaving Boro in January.
“Mido brings vast experience to the table,” Wigan boss Steve Bruce said. “He has a good Premier League pedigree having scored goals at Tottenham and Middlesbrough, and he has also played for some huge European clubs where he gained Champions League and Uefa Cup experience.
“He is still a relatively young man with potentially his best years ahead of him and hopefully he can produce a bit of magic for us during the rest of the season.”
Mido told Wigan’s official website: “Wigan are a club moving in the right direction who play great football and their league position is no fluke.
“I’m really looking forward to teaming up with some excellent players.
“When a man like Steve Bruce, who has achieved so much in the game, says he wants you, you have to take up opportunities like that.
“My focus now is entirely on making sure we reach safety and then progress as far as we can this season.
“I’m also really pleased to be teaming up with Zaki. He is a top player and a good friend and it always helps when there are familiar faces when you join a new club.
“Now I just want to show the Wigan public what I am all about and play football.”