Credit: Jordan Strauss/; Frazer Harrison/Getty Images

Eddie Cibrian and Brandi Glanville's marriage is finally, officially over.

A judge granted the former couple's petition for divorce in L.A. County Superior Court on Thursday, TMZ confirmed. Cibrian, 37, and Glanville, 36, wed in 2002 and have two sons together: Mason, 7, and Jake, 3. They originally filed to dissolve their union last August.

Their marriage fell apart after Cibrian's torrid affair with Northern Lights costar LeAnn Rimes (first reported in Us Weekly) came to light.

Rimes' own six-year marriage to Dean Sheremet similarly ended in the wake of the scandal; their divorce was finalized in June.

Cibrian and Rimes went public with their romance in fall 2009. He and his two sons moved into Rimes' Malibu home over the summer.