Mass is a measure of the amount of matter in an object, typically expressed in kilograms or grams. It plays a crucial role in determining the gravitational attraction between objects, influencing how they behave under the influence of gravity, particularly in extreme conditions like those found near black holes and during gravitational collapse.