What to do to prevent scarring?

What to do to prevent scarring? After a deep wound, a scar almost always appears. Unfortunately, you can't prevent this.