After a semiconductor element is formed and before resin sealing is performed, a surface of a scribe line between the adjacent semiconductor elements of a semiconductor wafer is scraped thinly. A laser is irradiated on a broken layer of the surface of the scribe line thus scraped thinly to recrystallize the broken layer.