Although a void marriage is automatically invalid, individuals can file a petition in court for a formal declaration of nullity.