In this book, four children, Philip, Dinah, Jack, and Lucy, run away from their cruel Aunt and Uncle and find refuge on a secluded island. They build a secret hideaway and have many exciting adventures, encountering pirates, smugglers, and other dangers.
Is that the book you were thinking of?