Charlie Sheen

Charlie Sheen will return to Two and a Half Men for two more seasons.

"To put a fitting end on the two and one-half months of whirlwind speculation, I'm looking forward to returning to my CBS home on Monday nights," Sheen said in a statement. "I want to thank [CBS President and CEO] Les Moonves for his support."

Terms of the deal were not disclosed. Calls to CBS and Warner Bros. were not immediately returned, but CBS will unveil its fall lineup Wednesday.

Charlie Sheen: If I leave Two and a Half Men, "so be it"

The actor's future with the hit sitcom — which was already renewed for two more years — was uncertain after he publicly stated last month that he was ready to walk away should contract negotiations fall through. Sheen earned $825,000 per episode last season and was ranked the highest-paid actor on TV. He denied reports that he was demanding a bigger paycheck as a last-minute negotiating tactic, saying that he submitted his terms for Season 8 last June.

Two and a Half Men's production order cut by two episodes

The deal caps a tumultuous season for Sheen, who faces domestic violence charges stemming from a Christmas Day fight with wife Brooke Mueller. He has pleaded not guilty and is due back in court July 21.

Production on Men halted for three weeks in February when Sheen entered rehab as a "preventative measure." He returned to work March 16, and the show's production order was later reduced by two episodes.