Joe Garner netted two goals as Oldham got ready for the National League play-offs with a 2-0 victory against relegated Ebbsfleet.
Oldham's Joe Pritchard hit the post early in the game and Ebbsfleet, who are at the bottom of the league, faced a tough challenge at Boundary Park.
Garner was brought down in the penalty area and he stepped up to score the first goal from the penalty spot in the 35th minute.
Felix Goddard made important saves to stop Vimal Yoganathan's attempts before and after half-time. When Yoganathan's shot hit the crossbar near the end of the match, Garner was in the right place to head in the rebound.