Structural transformations and dynamical processes in materials have their origin in the interplay of electronic and nuclear dynamics. These phenomena can be predicted, often with surprising accuracy, by modern computational approaches, resulting in unprecedented levels of insight on the behavior of matter at the nanoscale. In this talk I will review the basic principles of this methodology and will discuss some of the challenges currently facing the research in this field.