Click to email this to a friend (Opens in new window)

Click to share on Twitter (Opens in new window)

Click to share on Facebook (Opens in new window)

Even an international soccer god can find himself offside in Manhattan’s wildly competitive real estate market.

New York City Football Club captain David Villa has been booted out of his Upper West Side apartment after it was sold to Internet entrepreneur Sam Jain, the CEO of discount site CheapOAir.com, for $8.4 million.

Villa signed to NYCFC, owned by the New York Yankees and the UK’s Manchester City club, from Atlético Madrid in 2014.

He and wife Patricia González have been renting a five-bedroom, five-bath apartment with sweeping views of the Hudson River at the Rushmore, located at 80 Riverside Blvd.

But the owner, Norwegian songwriter Mikkel Eriksen — who has written hits for stars including Rihanna and Beyoncé as part of the wildly successful production duo Stargate — just sold the apartment, and Villa has been truly sent off.

A source said, “Sam wants to move in, so he has told Villa to kick it. He and his wife have been forced to move out.”

However, a source close to the soccer star insisted, despite the fact that he wasn’t offered a chance to renew in his previous apartment, he chose to move to a different apartment in the same building.

The source said, “David wasn’t forced to move, he moved because there was vacancy in an apartment in the same building which has a large terrace. He moved out of the apartment last June as he spends the summer outside of the city. He moved into his new apartment in September. He’s the one who wanted to make the switch.”

Listing broker Jenny Lenz didn’t return calls for comment.

Reps for Villa didn’t get back to us.