Really Useful Investments No 219 (Pty) Ltd (RUI) owned a number of undeveloped properties in Hout Bay. In the course of preparing the land for development, RUI raised the level of certain properties by dumping fill material in and near the Disa River. The City of Cape Town, acting under s 31A of the Environment Conservation Act 73 of 1989 (ECA), issued a directive requiring RUI to remove the fill, rehabilitate the wetland and floodplain, and undertake environmental assessments at its own cost. RUI complied with the directive. It then instituted action against the City, the Minister of Water and Environmental Affairs, and the MEC for compensation under s 34 of ECA, alleging that the directive resulted in a substantial diminution in the value of its land. The City raised an exception, and the Minister and MEC raised pleas, contending that s 49 of the National Environmental Management Act 107 of 1998 (NEMA) and s 37 of ECA excluded liability because no unlawfulness, negligence, or bad faith was alleged. The High Court dismissed the exception and pleas, leading to the appeal to the Supreme Court of Appeal.