Rietspruit was a former mining village established by a colliery mine. After mining operations ceased, Lehlaka Property Development (Pty) Ltd was tasked with handing over the village to the community and ultimately retained ownership of eight properties. Electricity was supplied by Emalahleni Local Municipality under a consumer agreement governed by municipal electricity by-laws. The eight properties became unlawfully occupied, and although Lehlaka initially paid electricity charges, it later terminated its consumer agreement in terms of the by-laws and contended that it was no longer liable for electricity consumed by the unlawful occupiers. The Municipality refused to accept the termination unless Lehlaka notified and relocated the occupiers. Lehlaka sought declaratory and interdictory relief in the High Court, which was granted. The Municipality appealed, raising, inter alia, non-joinder of the unlawful occupiers and the argument that the matter implicated administrative action under PAJA.