Gadlys Rovers' players found the goalposts facing away from pitch just hours before kick-off at Abernant in Rhondda Cynon Taff.
It would have been impossible to score a goal as the stanchions that holds the net were pointing into the pitch.
The amateur team play in the Aberdare Valley Football League.
"I was amazed when I went to check the pitch," said team manager Matthew Jones.
"To the right hand side I could see there was something wrong with the goals. They were the wrong way round.
"I thought to myself: 'What the hell is going on?'"
The 24-year-old boss was live streaming his pitch inspection in Abernant to his players when he made the discovery.
Mr Jones complained to Rhondda Cynon Taf council and he said they maintained council workers had installed the goalposts correctly.
"There's no way we could've played if it hadn't been sorted out," he added.
"When I came back around 5.15pm they had been turned around the right way."
A council spokesman said it had investigated the incident but later declined to comment further.

Leonid Papachin, 51, from Lithuania, is alleged to have performed the manoeuvre on Thursday after missing an exit slip-road near Lichfield.
Other vehicles are said to have been forced to slow down to avoid his articulated lorry.
He appeared at Cannock Magistrates' Court charged with dangerous driving but did not enter a plea.
Mr Papachin was remanded in custody to appear at the same court on Tuesday.

Aberdeen engineer Sean Sangerman, 25, caught the incident on his dash cam on the B9119 near Garlogie on Monday morning.
It showed the oncoming vehicle - believed to be a dark blue Nissan Qashqai - with only a small circle of snow cleared from the windscreen.
Police Scotland has been made aware of the footage.
Mr Sangerman said: "I have no idea what would cause someone to put themselves and other road users at risk in such a dangerous and reckless manner.
"What they are doing is outrageously silly and dangerous - there is no way that they are able to see the road properly through a gap of that size.
"They would have been driving almost blindly in conditions that were quite treacherous - snow, ice, slippy roads and so on."
The number plate could not be made out in the footage.
The Highway Code states that before motorists set off they must be able to see, so all snow and ice must be cleared from windows.
A football team has found a novel way of keeping a clean sheet - as the goalposts on their council-run pitch were installed the wrong way round.
[NEXT_CONCEPT]
A lorry driver has appeared in court accused of doing a U-turn on the M6 toll motorway.
[NEXT_CONCEPT]
A motorist was filmed driving with the windscreen almost completely obscured by snow in Aberdeenshire.