Huwa is the independent-pronoun topic, and wajibun its nominative predicate. Illa introduces an exception to the rule just given.
ʿAla is a preposition, ahli its genitive complement and the first member of an idafa, and Makkata the second member. Makkah is diptote, so in this construction it is genitive with fatḥah rather than kasrah.