By condensation of 4-(methylsulfonyl)benzaldehyde (I) with pentane-2,4-dione (II) by means of SOCl2 in isopropanol.