The following is an except from Mystic Saint's Blogspot:
The goal of the Sufi and all spiritual paths is nearness to God. In Sufism this is done via following the Sufi path and practices and Jihad or struggling against the lower self or nafs. It is the lower self that keeps humans distant from God. Islam and Sufism is about surrendering to the will of God through following this path. Once near God, alterations of mechanistic laws may occur. This nearness to Allah is the explanation of so-called miracles performed within religious contexts of ancient times and today.