Dungeon Guardian

The  is an enemy that spawns if the player enters the dungeon in a world where Skeletron has not been killed. It will appear in order to kill the player as soon as the dungeon music starts. In addition, it will also target any other players in the vicinity of the player who entered the dungeon.

Due to its unattainably high attack and defense, the Dungeon Guardian will always take 1 damage from all attacks (except criticals, which deal 2 damage) and will kill any player in one hit

350px

History
Before the Dungeon Guardian existed, Skeletron Heads fulfilled a similar role. Unlike with the Dungeon Guardian, killing all of the Skeletron Heads after they appear will grant the player access to the Dungeon as if they had killed Skeletron normally. The Dungeon Guardian was presumably introduced to counteract this unintended behavior.

Strategies
Due to the high defense of the Dungeon Guardian, it is best to use armor/accessories that boost your critical strike chance rather than damage, and use a rapid hitting weapon such as a Megashark with Crystal Bullets.

One tactic that can be used to kill the Dungeon Guardian (post 1.2) is to make a skybridge out of Asphalt Blocks. Run on the asphalt with Hermes/Flurry/Spectre/Lightning Boots in order to maintain a faster speed than the dungeon guardian. Get four Teleporters and set them one on each end and then an  other 60-70 blocks away from the one nearest to the edge. Put a pressure plate on each of the edge teleporters and wire them so that once you step on it, you teleport in the opposite direction.

This will allow you to switch running directions without being killed by the guardian. If using a Minishark or Megashark, this fight should take you no longer than 10-15 minutes.

You can also use the Piranha Gun and Frost Armor, since the Dungeon Guardian is affected by Frostburn and the Piranha Gun latches onto the Dungeon Guardian, making it easier because you don't have to aim, however, you need to be close, else the Piranha Gun will return and need to be fired again.

Another tactic is to wear Turtle Armor and you also need to wear the Black Belt. When the Dungeon Guardian hits you, it also takes full damage. When the Dungeon Guardian hits you twice, you will kill it. The Black Belt gives you a chance of dodging an attack, which means that you won't get hit. There is a very small chance that you can dodge an attack twice, and kill the Dungeon Guardian. This tactic is not advised though because you will have to be very lucky! As of the 1.2.0.3 update, due to the Dungeon Guardian's attack reduced to 1000 (from 9999), this method might not be as effective. If you get 1 dodge, the fight against Dungeon Guardian would be facilitated a lot.

Another tactic is to use Venom Bullets and a Megashark, Minishark or a Chain Gun, since he isn't resisistant to venom and this makes the fight go faster because he always takes 4 hits per second, and combining with the Frostburn bonus of the Frost Armor set, the fight will go really quick.

Bugs

 * When wearing a set of Titanium Armor, and having atleast 9 or 10 buffs, after killing an enemy, the armor will give you a debuff called "Shadow Dodge".
 * If two people are on a server, It is possible to summon Skeletron and the Dungeon Guardian at the same time. If these two interact with each other, the Dungeon Guardian will kill Skeletron. This will render a glitch in which Skeletron is dead, however the Dungeon Guardian is still active in the dungeon, rendering it impossible to access the dungeon until you kill the Dungeon Guardian itself.