Botox works by temporarily blocking nerve signals to the muscles, which relaxes them and reduces the appearance of wrinkles caused by muscle contractions.