The hydrostatic pressure at a point inside a liquid at rest is directly proportional to the density of the liquid, d, and the depth, h.

This visual shows you, step by step, how this equation is deduced.