A quark might be the smallest unit of matter. Quarks are matter. They have mass. Quarks come together in threes to make protons and neutrons which make up the nuclei of atoms, the most basic unit of elements.