1. Heat the oil in a wok. Turn the heat down.
2. Put the shallots in and stir. Make sure the oil is enough to cover all the shallots.
3. When the shallots are almost all brown, turn off the heat. Let the oil cool down a little and pour into a container.
The shallots will continue to cook even the fire is turn off. So do not wait till all the shallots are browned to turn off the fire as the shallots might burnt.