Quicksand

Quicksand is a mixture of water and sand or silt. It has the characteristic of thixotropy: it looks solid, but when pressure is applied it liquifies (acts like a liquid). If animals or people stand on it, they sink into it. However, a person does not drown in quicksand. A human or animal does not sink entirely into quicksand due to the higher density of the fluid. It can be difficult to get out: that is the real problem. Quicksand may be escaped by slow movement of the legs in order to reduce viscosity of the fluid, and rotating the body so as to float on one's back (supine).

Water circulation underground can focus in an area with just the right mixture of fine sands and other materials such as clay.  The water moves up and then down slowly in a convection-like manner throughout a column of sand, and the sand remains a generally solid mass.  This lubricates the sand particles and makes them unable to support any significant weight, since they move around with very little friction. They behave more like a liquid when exposed to stress.  Since the water does not usually go all the way up through the sand, the sand above does not appear to move at all, and can support leaves and other small debris. This makes it difficult to distinguish quicksand from the surrounding environment.

Properties 
Quicksand is a non-Newtonian fluid: when undisturbed it often seems to be solid ("gel" form), but a small (less than 1%) change in the stress on the quicksand causes it to turn liquid ("sol" form). There is a sudden decrease in its viscosity. Under his weight, the person then sinks into the sol (liquidised sand).
                                                                                           
Someone stepping in it starts to sink. Around the person dense regions of sand and sediment form and grip the person. The viscosity of the quicksand seems to increase suddenly. It is now a gel. In order to move within the quicksand, a person or object must apply sufficient pressure on the compacted sand to re-introduce enough water to liquify it.  The forces required to do this are quite large: to remove a foot from quicksand at a speed of one centimeter per second would require the same amount of force as "that needed to lift a medium-sized car".

It was commonly believed that the behavior of quicksand was due solely to saturated or supersaturated suspensions of granules in water.  Pressure from underground sources of water would separate and suspend the granular particles, reducing the friction between them. In 2005 it was been shown that the presence of salt is important. The stability of the colloidal quicksand is changed by the presence of salt. It increases the high viscosity regions of sediment responsible for quicksand's "trapping" power. Another finding was that a human cannot be drawn into a saltwater quicksand entirely.

Prevalence 

Quicksand may be found inland (on riverbanks, near lakes, or in marshes), or near the coast.

One region notorious for its quicksands is Morecambe Bay, Yorkshire. As the bay is very broad and shallow, a person trapped by the quicksand would be exposed to the danger of the returning tide, which can come in rapidly.

References

Other websites
Howstuffworks.com - How quicksand works

Quicksand in Fiction
Brainiac on Quicksand (Youtube)

Geology