Throughout the world, large caves in rocks (tafoni) are found, which originate from salt weathering. The mechanisms that control their development are poorly understood. The growth of tafoni has been studied with a model that describes how a rock surface, containing a small pit, disintegrates by salt crystallization during wetting/drying cycles. In the model the rock is mapped on a grid. The migration and crystallization of salts are simulated explicitly in the drying phase of a cycle. At the end of each wetting/drying cycle the amount of salt deposited at the grid nodes is evaluated and the shape of the rock surface is adjusted by removing nodes. The length of the drying period in a single cycle proved to be the key parameter. For short drying periods the amount of crystallized salt at the surface is proportional to the drying rate. Therefore, for short drying periods most salts are deposited at the more exterior parts of the rock surface. As a result, most damage will develop at these parts of the surface, which results in smooth surfaces. Due to the characteristics of the drying process for long drying periods, most salts accumulate at regions with low evaporation rates, which are the sheltered parts of the rock surface. These parts are not exposed to the wind or the sun. As a result, the pit grows and a tafone develops.