It can be rebuilt if other countries with selfish interests will not meddle, as has been done in the past.
Likewise the leader of any state has to do the same, he has to enforce Shariah firmly, for he will be held in account later in the afterlife if he fails.

