"It is with great sadness that after 7 years together, Tony and I have decided to divorce," the "Desperate Housewives" star wrote. "We love each other deeply and pray for each other's happiness."
Longoria's soon-to-be-ex-husband also took to Twitter to post a nearly identical statement.
TMZ posted the papers the actress filed at L.A. County Superior Court, citing "irreconcilable differences." Longoria is also asking for spousal support from Parker, who plays for the San Antonio Spurs. The legal docs mention the prenup the couple signed in 2007 and amended last year.
The couple had been plagued with rumors of Parker's infidelity, and a source told TMZ that the actress is "devastated."
Longoria, 35, and Parker, 28, met in November 2004 and were engaged in November 2006. They exchanged vows during a small civil service and again, a day later, on July 7, 2007, at Chateau of Vaux le Vicomte, a 17th-century castle on the outskirts of Paris. They have no children together.
The news of Parker and Longoria's split was surprising, as the couple are frequently photographed cuddling and generally appearing happy together. Just last month, Longoria stopped by the "Ellen" show, where she told host Ellen DeGeneres that Parker surprises her every year for their anniversary and that this year he took her to Croatia. Mid-story, Longoria seemed to sense that DeGeneres might be planning one of her signature "scares," and when the actress turned around, Parker was standing on set. He ran out and gave her a hug and kiss in front of the audience.