The pyramids are located closer to Cairo, not directly accessible from Alexandria Port, but you can arrange a day trip or more extended excursion.