Police had recently found large quantities of drugs at a property in Bodmin that helped them to successfully apply for a closure notice to be issued.
The three-month order was issued at Bodmin Magistrates Court earlier, meaning the flat was immediately boarded up.
The problems with drugs and anti-social behaviour at 22 Gregory's Court stretch back about 15 years.
Other residents reported issues including persistent noise throughout the day and night, as well as being spat and sworn at by people using the flat.
The closure order has come about after joint work between the Devon and Cornwall Police, Cornwall Council and Cornwall Housing.
Quote Message: In the past eight months the behaviour has escalated to the point where it's not only affecting the neighbours but also the wider community. We are right in the centre of Bodmin here and there's been a lot of incidents with members of the public who have nothing to do with the property, and we need to safeguard them as well." from Karen Centini Neighbourhood Enforcement Manager, Cornwall Housing