After the Wafd returned to power in 1950, the Brothers attempted to negotiate with the new government to have the Society legalised again, but could not reach an agreement. Martial law was ended, and all its provisions were abrogated except those that applied to the Brothers. Parliament passed a "Societies Law" that specifically targeted the Brotherhood without mentioning it by name, requiring a description and photograph of every member to be given to the authorities. The ministry of the interior announced that it intended to buy the Society's headquarters and use the building as a police station. The Brotherhood resolved all these issues by means of a successful court case, gaining the right to operate legally and the return of its confiscated property.