We study the Casimir force between two corrugated plates due to thermal fluctuations of a scalar field. For arbitrary corrugations and temperature T , we provide an analytical expression for the Casimir force, which is exact to second order in the corrugation amplitude. We study the specific case of two sinusoidally corrugated plates with corrugation wavelength λ, lateral displacement b, and mean separation H .