A care home deemed so bad residents had to be moved in the middle of the night has been given permission to reopen.
The Old Village School Nursing Home in Bedfordshire closed in August after the Care Quality Commission (CQC) obtained an emergency order.
Its director, Aman Badiani, successfully appealed against the closure after taking "radical action".
The CQC said it was right to close the home in Marston Moretaine, which will begin taking in new residents by March.
The home was rated "inadequate" following a CQC inspection last June and placed in special measures because of concerns about the competency of nursing staff to manage the complex needs of residents.
It was also found residents' capacity to consent to their treatment had not been properly assessed and documentation was not up-to-date.
Concerns included a resident's oxygen supply not being replaced, an untreated infected wound, and people not receiving adequate fluids.
A further inspection on 3 August found a "lack of improvement" and a letter was sent to Mr Badiani requiring him to submit an action plan.
When he could not "give real concrete evidence as to how he was going to rectify matters", the CQC obtained an order from Luton Magistrates' Court to close it down citing "a serious, very real and immediate risk to people".
This forced the rehoming of 57 residents within hours of the order being obtained.
At an appeal hearing in December, it was accepted Mr Badiani had taken "radical action to improve the work force" including making redundancies, and implementing disciplinary proceedings and training packages.
He had also brought in external care consultants BKR Care Consultancy Limited to bring it up to standard.
The CQC's chief inspector of adult social care, Andrea Sutcliffe, said: "The shocking examples of poor care my inspectors found at The Old Village School Nursing Home last summer were utterly dreadful.
"I am glad that in reaching its conclusion the tribunal has clearly stated its support for the action we took at the time to immediately stop services being provided.
"The tribunal judge has imposed a number of very strict conditions that the provider must adhere to, which we support fully."