The recount lasted three days in more than 20 of the state's 83 counties. Some counties hadn't planned to start until later.
Federal Judge Mark Goldsmith said Wednesday he must follow a decision by the Michigan appeals court, which found that Green Party candidate Jill Stein couldn't seek a recount. She got 1 percent of the vote and presented no evidence of fraud. Republican Donald Trump narrowly won.
The Michigan elections board stopped the recount because of Goldsmith's ruling. It then canceled a planned Thursday meeting because it became moot.
A recount is ongoing in Wisconsin, and Stein is seeking one in Pennsylvania. Trump won those states, too.
Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.