Zach Gilford and Kiele Sanchez played a husband and wife on 'Criminal Minds' and they were married in real life too ... but now they're estranged, because he just filed for divorce.
Zach beelined it to court Friday and filed to divorce his actress wife after 12 years of marriage ... according to new legal docs obtained by TMZ.

The actor, who also starred in the NBC series "Friday Night Lights" as quarterback Matt Saracen, is going with the boilerplate "irreconcilable differences" as the reason for the split.