butter has water in it. when the butter is heated, the water turns to steam. then the steam creates pockets within the dough - which translate to flaky layers. second, rolling and folding the dough - the folding technique of the croissant dough is important.