A rectangle is a square if and only if all four of its sides have the same lengths.
Wikipedia foundation.