Flavour physics represents a unique test bench for the Standard Model (SM). New analyses performed at the LHC experiments are now providing unprecedented insights into CKM metrology and new results for rare decays. The CKM picture can provide very precise SM predictions through global analyses. I will describe the framework, the inputs and the results of the latest global SM analysis performed by the UTfit collaboration including all the most updated inputs from experiments, lattice QCD and phenomenological calculations. In addition, the Unitarity Triangle analysis can be used to constrain the parameter space in possible new physics (NP) scenarios. Assuming NP, all of the available experimental and theoretical information on DeltaF=2 processes is combined using a model-independent parametrisation. We determine the allowed NP contributions in the kaon, D, Bd, and Bs sectors and, in various NP scenarios, we translate them into bounds for the NP scale as a function of NP couplings.