Hamas, which is affiliated with the Muslim Brotherhood movement, also has strained relations with the current Egyptian administration, which has kept its crossing with Gaza mostly closed in recent years.