Solar and Space Physics is an edited book consisting of 16 contemporaneous open-access articles featuring the modeling of the solar magnetic activity and space weather. It aims to provide an overall overview and to review the recent advances in the modelling of the solar dynamo and its important features, including the sunspot butterfly diagram. It also focuses on the impact of the solar activity cycle on Earths environment. It includes magnetohydrodynamics modeling and forecasting of the past, current, and future solar magnetic activity, from the strong magnetic eruptions during solar minima to low number of sunspots and weakening of magnetic structures during solar minima. It includes, in particular, the analysis of the most recent solar cycles (Solar Cycles 23 and 24) as well as a prediction for the current solar cycle (Solar Cycle 25). Reading this book requires some knowledge in electromagnetism, hydrodynamics, and time series. This book is intended to reach an academic audience ranging from advanced undergraduate students to experienced researchers.