Coquina (/ko????ki??n??/; Spanish: cockle.) is a sedimentary rock that is composed either wholly or almost entirely of the transported, abraded, and mechanically-sorted fragments of the shells of either molluscs, trilobites, brachiopods, or other invertebrates.