In my talk I will present and discuss recent results from high-resolution simulations on the formation of the first galaxies and how these influence their environment. I will take a close look at how black holes will be seeded in such an environment and how the escape fraction of ionizing photons from galaxies evolves. Results from these simulations have profound implications for future observational missions with e.g. the James Webb Space Telescope and I will discuss these.