This may be because your egg whites were not aged first (the whites should be covered and refrigerated for 24 hours before using), or because your batter was too wet. It can also be because the skin did not form on the macaron before baking, the surface of macarons needs to be dry before baking.