If a car fails its MOT test, it is not illegal to sell it. However, it is important to disclose this information to potential buyers. It is advisable to get any necessary repairs done before trying to sell the vehicle. Be honest about the MOT failure and provide any relevant documentation to potential buyers. Failure to disclose this information could lead to legal consequences. It is always best to be transparent when selling a car that has failed its MOT.