The dynamic alignment and post-ionization alignment of nitrogen molecules are investigated while considering the effect of tunneling ionization. The effects of tunneling ionization on the angular distribution are calculated when the molecules are irradiated by different laser intensities. The results show that laser intensity directly affects the time and extent of dynamic alignment. Furthermore, the extent of post-ionization alignment is not only determined by laser intensity but also affected by the final extent of dynamic alignment. The post-ionization alignment will dominate during the process of molecular (or molecular ion) rotational alignment for femtosecond laser pulse. The time of tunneling ionization is a significant factor to the final ensemble angular distribution of molecular ions when laser intensity is low.