Root Android then Restore Factory Defaults
It depends on what you mean by resetting the phone:


A Full wipe / factory reset using the recovery system will not remove root. You flashed root into the /system/ partition, so it isn't going anywhere if you just wipe the data from the device.
Re-installing official firmware will remove root (e.g., re-flashing a stock ROM)