This is a reference to consulting the dead, a practice that Yahweh prohibited.
Yahweh did not allow the people of Israel to eat meat from pigs.