Disgraced Olympic swimmer Ryan Lochte — who lied about being robbed in Rio de Janeiro last year — is suing the headache medicine Migralex for reneging on a $125,000 endorsement deal.

Lochte inked the sponsorship with Migralex’s parent company, Ember Therapeutics, on Sept. 27, 2016, just weeks after he was suspended from competing for 10 months.

“Ryan Lochte has had an outstanding athletic career . . . We are honored to have him be our spokesperson for Migralex,” a company spokesman said at the time.

The gold medalist falsely claimed that he was held up at gunpoint at a Rio gas station during the Olympics. The tall tale sunk the swimmer’s other sponsorships with higher profile companies like Speedo and Ralph Lauren.

It’s unclear why Ember Therapeutics never made good on the agreement, although the company had shuttered in 2014 and was revived in 2015 by another pharmaceutical firm.

A rep for the company did not immediately respond to a request for comment on the new Manhattan Supreme Court lawsuit.

Lochte brought the matter before an arbitrator who awarded the Olympian $125,000 plus fees. The arbitrator found that Lochte “complied with his obligations under the agreement,” according to a copy of the April 5 ruling.

Ember promised that the funds would be delivered, but ultimately failed to make any payments to Lochte, the ruling says.