You can visit Pompeii from Naples by taking a direct train from Naples Central Station to Pompeii, which takes about 30 minutes.