Squatting is the act of occupying an abandoned or unoccupied space or building that the squatter does not own, rent or otherwise have permission to use.

From Wikipedia. Pretty much sums it up.