A device such as an MEMS device is fabricated by cutting a laminate of a semiconductor substrate and a glass substrate. Grooves are formed in the glass substrate, and the semiconductor substrate and the glass substrate are laminated together such that the groove faces the semiconductor substrate. The laminated substrates are irradiated with a laser along the groove from the side of the glass substrate to cut the laminate into elements.