Density is the amount of matter within a given amount of space.
Water has a density of 1.0 gram per centimeter squared.
Mercury has a density of 13.6 grams per centimeter squared.
Thus, within the same volume, mercury has more mass than water. Thus, mercury has a higher density.