Andrew II was the duke of Naples from 834 to 840. During his reign, he was constantly at war with the Lombards and he allowed Gaeta, his vassal, to move towards independence under its own consuls.