What does ''Oh what a tangled web we weave when first we practice to deceive'' mean?

Answer:

This means when you intend to, deceive(lie, cheat, etc.), you entangle yourself in complicated situations- trying to cover your a$$, when your deception is exposed.