How and where is a divorce complaint filed?

The petition is filed with the county clerk in the county in which you or your spouse resides.