We propose a promising scheme to prepare ultracold MgF molecules from a slowed cold molecular beam by using three-dimensional pure intensity-gradient induced Sisyphus cooling. The cooling is based on a blue-detuned localized hollow beam and a weak repumping beam. We investigate the dynamic process in the trap with the method of the Monte-Carlo simulations, verifying the feasibility. Our results show that achieving sub-Doppler temperature should be possible in such a well-designed trap; the trapped MgF molecules with initial temperature of 1 mK can be directly cooled to the final equilibrium temperature of about m 46.5 K, well below the Doppler limit (about m 527.9 K for MgF); meanwhile, molecules with initial temperature of 14 mK can be even cooled to about m 68.7 K. + -) cooling [22,23], is totally different in type-II systems, because of the existence of the dark states. There are two main cooling mechanisms in such transitions, the gray molasses and the magnetically-assisted Sisyphus cooling, both of which are able to cool particles to below the Doppler limit [24,25]. On this basis, Truppe et al realized for the first time the cooling of molecules, well below the Doppler limit, using a three-dimensional blue-detuned molasses [26]. temperature was achieved by Λ-enhanced gray molasses and deep cooling with a single laser, both of which can cool CaF to several mK [27,28]. Besides, laser cooling and deceleration of molecules with stimulated force has also progressed a lot both theoretically and experimentally [29][30][31].As the common cooling method before molecules loaded into a type-II MOT, laser sweep slowing or whitelight slowing, both of which are used to compensate Doppler shift, are not a very efficient way for larger number of molecules. This causes the problem of the small number and the low density of trapped molecules in the type-II MOT. In order to produce a diverse set of dense, ultracold diatomic molecular species, it would be interesting and worthwhile to explore how to produce much larger numbers of trapped molecules. Here we propose a new scheme for the preparation of ultracold molecules, which consists of the Stark-decelerated molecules and a localized hollow optical trap, where sub-Doppler cooling works well. We bypass the Doppler cooling, and achieve the process from supersonic molecular beam to sub-Doppler cooling of molecules. The localized hollow optical trap has a strong cooling capacity, and it can derive ultracold trapped molecules with higher density.The cooling mechanism of a hollow optical trap is pure intensity-gradient cooling [32][33][34][35][36][37], another sub-Doppler cooling, which can also efficiently cool the molecules to the temperature of several photon recoils. The magnetic-field-assisted intensity-gradient cooling of molecules has first been observed in a one-dimensional standing wave, which have substantially reduced the transverse temperature of a SrF molecular beam [4]. Magnesium monofluoride (MgF) [38,39], due to its highly diagonal Franck-Condon factors (FCFs) and st...