When baking a cake, it is important to prepare the pan before adding the batter. This ensures that the cake will not stick to the pan and will release easily. To prepare the pan, grease it with shortening or butter and then dust with flour. You can also line the pan with parchment paper for an even easier release.