Practice the correct stroke technique
The most common swimming style and the one that is used the most is the front crawl (also referred to as freestyle). But, whichever stroke you are working on, the technique is a fundamental part of stroke execution, and each swimmer has to find the most comfortable stroke rhythm to execute. It is a process that takes some practice and adequate exercises, but if you focus on the technique, the process will be more comfortable and faster. There are multiple YouTube channels that focus on the correct technique of swimming strokes. They can be a good resource when looking to learn more about a particular stoke.