Oldham Athletic will host La Liga new boys Girona FC on Thursday, July 27 (7pm kick off).
The Catalan side were promoted to La Liga after finishing as runners up in the Segunda Division last season.
The game will allow manager John Sheridan a chance to put his team to the test against foreign opposion as he prepares for the new 2017/18 season.
Chief Executive Mark Moisley: "We are delighted to have the opportunity to host such a prestigious game and look forward to welcoming Girona FC and their officials to SportsDirect.com Park.
"It gives supporters the chance to see a side from one of the top leagues in Europe on their own doorstep."
All ticket information will be released in due course.
Saturday, July 8 (3pm kick off)
Stalybridge Celtic vs. Oldham Athletic
Wednesday, July 12 (7.45pm kick off)
Salisbury FC vs. Oldham Athletic
Friday, July 14 (12noon kick off - behind closed doors)
Swindon Town vs. Oldham Athletic
Tuesday, July 18 (7.45pm kick off)
Curzon Ashton vs. Oldham Athletic
Saturday, July 22 (3pm kick off)
Accrington Stanley vs. Oldham Athletic
Thursday, July 27 (7pm kick off)
Oldham Athletic vs. Girona FC
More to follow in due course.